package com.zmn.mcc.cas.server.boot.autoconfigure;

import com.zmn.mcc.cas.server.RedisAtomicFactory;
import com.zmn.mcc.cas.thymeleaf.boot.autoconfigure.CasThymeleafConfiguration;
import com.zmn.mcc.cas.thymeleaf.boot.autoconfigure.SysUrlConfiguration;
import com.zmn.mcc.cas.web.boot.autoconfigure.CasShiroConfiguration;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;
import org.springframework.data.redis.connection.RedisConnectionFactory;

/**
 * @author quanjic
 * @version v1.0
 * @since 2020/6/16 9:22
 **/
@Configuration

@Import({CasShiroConfiguration.class, CasServerShiroConfiguration.class, CasServerShiroWebConfiguration.class, CasThymeleafConfiguration.class, SysUrlConfiguration.class})
public class CasServerConfiguration {

    @Bean
    public RedisAtomicFactory redisAtomicLong(RedisConnectionFactory redisConnectionFactory) {
        return new RedisAtomicFactory(redisConnectionFactory);
    }

}
